﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
	xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    x:Class="WPF_DbCenter.UI.Main"
    Title="Main" Height="451" Width="812"
    >
    <Grid>

        <TreeView ToolTip="Right Click to get more functions" x:Name="mainTreeView" HorizontalAlignment="Left" Width="256" Margin="2,139,0,32" />
        <TextBox ToolTip="Sql command input region" Margin="101,33,64,0" VerticalAlignment="Top" Height="102" Text="" TextWrapping="Wrap" x:Name="txtMainCmd" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
        <Button Margin="4,33,0,0" x:Name="butQuery" Click="butQueryClick" VerticalAlignment="Top" Height="54" Content="Execute" HorizontalAlignment="Left" Width="64" >
            <Button.ToolTip>Press this button to execute sql command
            </Button.ToolTip>
        </Button>
        <Menu  DockPanel.Dock="Top" Margin="0,5,0,0" Height="26" VerticalAlignment="Top">
            <MenuItem Header="File">
                <MenuItem Header="Open Script" Click="OpenScirpt_Click"/>
                <MenuItem Header="Save Script" Click="SaveScirpt_Click"/>
                <Separator/>
                <MenuItem Header="Close" Click="close_Click"/>
                <MenuItem Header="Exit" Click="exit_Click"/>
            </MenuItem>
            <MenuItem Header="Sync">
                <MenuItem Header="Sync From Sql Server" Click="syncSqlServer_CLick"/>
                <MenuItem Header="Sync From Access" Click="syncAccess_Click"/>
                <MenuItem Header="Sync From Excel" Click="syncExcel_Click"/>
                <MenuItem Header="Sync From CSV" Click="syncCSV_Click"/>
                <MenuItem Header="Sync From MySql" Click="syncMySql_Click"/>
                <Separator/>
                <MenuItem Header="Sync From SqlCE" Click="but_SyncFromSqlCE_Click"/>
            </MenuItem>
            <MenuItem Header="O/R Map">
                <MenuItem Header="Generate Linq Context" Click="GLinq_Click"/>
                <MenuItem Header="Generate Bussiness Entity" Click="generateBusinessEntity_Click"/>
            </MenuItem>
            <MenuItem Header="Tools">
                <MenuItem Header="Download sdf" Click="butDownload_Click"/>
                <MenuItem Header="Reset Sqlce Db" Click="butResetDataInSqlceDb_Click"/>
                <Separator/>
                <MenuItem Header="Option" Click="option_Click"/>
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Header="About us" Click="menuAbout_Click"/>
                <MenuItem Header="Help Document" Click="help_Click"/>
            </MenuItem>
        </Menu>
        <Button ToolTip="Back to last command(Hotkey Ctrl+B)" Click="BackCmd" Height="22" HorizontalAlignment="Left" Margin="69,34,0,0" Name="butBack" VerticalAlignment="Top" Width="28">&lt;-</Button>
        <Button ToolTip="Next command(Hotkey Ctrl+N)" Click ="NextCmd" Height="22" HorizontalAlignment="Left" Margin="69,62,0,0" Name="butNext" VerticalAlignment="Top" Width="28">-&gt;</Button>
        <ToolBarTray Name="toolBarTray1" Margin="3,0,331,0" Height="29" VerticalAlignment="Bottom">
            <ToolBar MinHeight="20" MinWidth="20" DataContext="First" />
            <ToolBar />
        </ToolBarTray>
        <my:DataGridControl ToolTip="Data preview region" Margin="260,139,7,33" Name="dataGridControl1" xmlns:my="http://schemas.xceed.com/wpf/xaml/datagrid" />
        <ProgressBar Height="21" Margin="261,0,5,6" Name="progressBar1" VerticalAlignment="Bottom" />
        <Button Height="20" HorizontalAlignment="Left" Margin="4,90,0,0" Name="button1" VerticalAlignment="Top" Width="29.653" Click="button1_Click">&gt;</Button>
        <Button Height="20" Margin="38.653,90,0,0" Name="button2" VerticalAlignment="Top" Click="button2_Click" HorizontalAlignment="Left" Width="29.653">&lt;</Button>
    </Grid>
</Window>